package com.example.demo.service;

import com.example.demo.entity.ProductCategory;
import com.example.demo.mapper.CategoryMapper;
import com.example.demo.mapper.ProductCategoryMapper;
import com.example.demo.service.interf.ProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hongzhenyue on 18/3/2.
 */
@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {
    @Autowired
    private CategoryMapper productCategoryMapper;

    @Override
    public ProductCategory findByCategoryType(Integer type) {
        return productCategoryMapper.findByCategoryType(type);
    }
}
